package grpc.htsoft.helloworld;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * <pre>
 * The greeting service definition.
 * </pre>
 */
//@javax.annotation.Generated(
//    value = "by gRPC proto compiler (version 1.52.1)",
//    comments = "Source: helloworld.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class GreeterGrpc {

  private GreeterGrpc() {}

  public static final String SERVICE_NAME = "helloworld.Greeter";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest,
      grpc.htsoft.helloworld.HelloReply> getSayHelloMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "SayHello",
      requestType = grpc.htsoft.helloworld.HelloRequest.class,
      responseType = grpc.htsoft.helloworld.HelloReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest,
      grpc.htsoft.helloworld.HelloReply> getSayHelloMethod() {
    io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest, grpc.htsoft.helloworld.HelloReply> getSayHelloMethod;
    if ((getSayHelloMethod = GreeterGrpc.getSayHelloMethod) == null) {
      synchronized (GreeterGrpc.class) {
        if ((getSayHelloMethod = GreeterGrpc.getSayHelloMethod) == null) {
          GreeterGrpc.getSayHelloMethod = getSayHelloMethod =
              io.grpc.MethodDescriptor.<grpc.htsoft.helloworld.HelloRequest, grpc.htsoft.helloworld.HelloReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SayHello"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.HelloRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.HelloReply.getDefaultInstance()))
              .setSchemaDescriptor(new GreeterMethodDescriptorSupplier("SayHello"))
              .build();
        }
      }
    }
    return getSayHelloMethod;
  }

  private static volatile io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.UserReply> getGetUserMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetUser",
      requestType = grpc.htsoft.helloworld.User.class,
      responseType = grpc.htsoft.helloworld.UserReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.UserReply> getGetUserMethod() {
    io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.UserReply> getGetUserMethod;
    if ((getGetUserMethod = GreeterGrpc.getGetUserMethod) == null) {
      synchronized (GreeterGrpc.class) {
        if ((getGetUserMethod = GreeterGrpc.getGetUserMethod) == null) {
          GreeterGrpc.getGetUserMethod = getGetUserMethod =
              io.grpc.MethodDescriptor.<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.UserReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.User.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.UserReply.getDefaultInstance()))
              .setSchemaDescriptor(new GreeterMethodDescriptorSupplier("GetUser"))
              .build();
        }
      }
    }
    return getGetUserMethod;
  }

  private static volatile io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.User> getGetUser2Method;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetUser2",
      requestType = grpc.htsoft.helloworld.User.class,
      responseType = grpc.htsoft.helloworld.User.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.User> getGetUser2Method() {
    io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.User> getGetUser2Method;
    if ((getGetUser2Method = GreeterGrpc.getGetUser2Method) == null) {
      synchronized (GreeterGrpc.class) {
        if ((getGetUser2Method = GreeterGrpc.getGetUser2Method) == null) {
          GreeterGrpc.getGetUser2Method = getGetUser2Method =
              io.grpc.MethodDescriptor.<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.User>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser2"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.User.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.User.getDefaultInstance()))
              .setSchemaDescriptor(new GreeterMethodDescriptorSupplier("GetUser2"))
              .build();
        }
      }
    }
    return getGetUser2Method;
  }

  private static volatile io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest,
      grpc.htsoft.helloworld.HelloReply> getSayHelloStreamReplyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "SayHelloStreamReply",
      requestType = grpc.htsoft.helloworld.HelloRequest.class,
      responseType = grpc.htsoft.helloworld.HelloReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest,
      grpc.htsoft.helloworld.HelloReply> getSayHelloStreamReplyMethod() {
    io.grpc.MethodDescriptor<grpc.htsoft.helloworld.HelloRequest, grpc.htsoft.helloworld.HelloReply> getSayHelloStreamReplyMethod;
    if ((getSayHelloStreamReplyMethod = GreeterGrpc.getSayHelloStreamReplyMethod) == null) {
      synchronized (GreeterGrpc.class) {
        if ((getSayHelloStreamReplyMethod = GreeterGrpc.getSayHelloStreamReplyMethod) == null) {
          GreeterGrpc.getSayHelloStreamReplyMethod = getSayHelloStreamReplyMethod =
              io.grpc.MethodDescriptor.<grpc.htsoft.helloworld.HelloRequest, grpc.htsoft.helloworld.HelloReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SayHelloStreamReply"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.HelloRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.HelloReply.getDefaultInstance()))
              .setSchemaDescriptor(new GreeterMethodDescriptorSupplier("SayHelloStreamReply"))
              .build();
        }
      }
    }
    return getSayHelloStreamReplyMethod;
  }

  private static volatile io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.DataSet> getGetDataSetMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetDataSet",
      requestType = grpc.htsoft.helloworld.User.class,
      responseType = grpc.htsoft.helloworld.DataSet.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User,
      grpc.htsoft.helloworld.DataSet> getGetDataSetMethod() {
    io.grpc.MethodDescriptor<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.DataSet> getGetDataSetMethod;
    if ((getGetDataSetMethod = GreeterGrpc.getGetDataSetMethod) == null) {
      synchronized (GreeterGrpc.class) {
        if ((getGetDataSetMethod = GreeterGrpc.getGetDataSetMethod) == null) {
          GreeterGrpc.getGetDataSetMethod = getGetDataSetMethod =
              io.grpc.MethodDescriptor.<grpc.htsoft.helloworld.User, grpc.htsoft.helloworld.DataSet>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.User.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  grpc.htsoft.helloworld.DataSet.getDefaultInstance()))
              .setSchemaDescriptor(new GreeterMethodDescriptorSupplier("GetDataSet"))
              .build();
        }
      }
    }
    return getGetDataSetMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static GreeterStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<GreeterStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<GreeterStub>() {
        @java.lang.Override
        public GreeterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new GreeterStub(channel, callOptions);
        }
      };
    return GreeterStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static GreeterBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<GreeterBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<GreeterBlockingStub>() {
        @java.lang.Override
        public GreeterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new GreeterBlockingStub(channel, callOptions);
        }
      };
    return GreeterBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static GreeterFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<GreeterFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<GreeterFutureStub>() {
        @java.lang.Override
        public GreeterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new GreeterFutureStub(channel, callOptions);
        }
      };
    return GreeterFutureStub.newStub(factory, channel);
  }

  /**
   * <pre>
   * The greeting service definition.
   * </pre>
   */
  public static abstract class GreeterImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     * Sends a greeting
     * </pre>
     */
    public void sayHello(grpc.htsoft.helloworld.HelloRequest request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSayHelloMethod(), responseObserver);
    }

    /**
     */
    public void getUser(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.UserReply> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUserMethod(), responseObserver);
    }

    /**
     */
    public void getUser2(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.User> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUser2Method(), responseObserver);
    }

    /**
     */
    public void sayHelloStreamReply(grpc.htsoft.helloworld.HelloRequest request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSayHelloStreamReplyMethod(), responseObserver);
    }

    /**
     */
    public void getDataSet(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.DataSet> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataSetMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getSayHelloMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                grpc.htsoft.helloworld.HelloRequest,
                grpc.htsoft.helloworld.HelloReply>(
                  this, METHODID_SAY_HELLO)))
          .addMethod(
            getGetUserMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                grpc.htsoft.helloworld.User,
                grpc.htsoft.helloworld.UserReply>(
                  this, METHODID_GET_USER)))
          .addMethod(
            getGetUser2Method(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                grpc.htsoft.helloworld.User,
                grpc.htsoft.helloworld.User>(
                  this, METHODID_GET_USER2)))
          .addMethod(
            getSayHelloStreamReplyMethod(),
            io.grpc.stub.ServerCalls.asyncServerStreamingCall(
              new MethodHandlers<
                grpc.htsoft.helloworld.HelloRequest,
                grpc.htsoft.helloworld.HelloReply>(
                  this, METHODID_SAY_HELLO_STREAM_REPLY)))
          .addMethod(
            getGetDataSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                grpc.htsoft.helloworld.User,
                grpc.htsoft.helloworld.DataSet>(
                  this, METHODID_GET_DATA_SET)))
          .build();
    }
  }

  /**
   * <pre>
   * The greeting service definition.
   * </pre>
   */
  public static final class GreeterStub extends io.grpc.stub.AbstractAsyncStub<GreeterStub> {
    private GreeterStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected GreeterStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new GreeterStub(channel, callOptions);
    }

    /**
     * <pre>
     * Sends a greeting
     * </pre>
     */
    public void sayHello(grpc.htsoft.helloworld.HelloRequest request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getSayHelloMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getUser(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.UserReply> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetUserMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getUser2(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.User> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetUser2Method(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void sayHelloStreamReply(grpc.htsoft.helloworld.HelloRequest request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply> responseObserver) {
      io.grpc.stub.ClientCalls.asyncServerStreamingCall(
          getChannel().newCall(getSayHelloStreamReplyMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getDataSet(grpc.htsoft.helloworld.User request,
        io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.DataSet> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetDataSetMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * <pre>
   * The greeting service definition.
   * </pre>
   */
  public static final class GreeterBlockingStub extends io.grpc.stub.AbstractBlockingStub<GreeterBlockingStub> {
    private GreeterBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected GreeterBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new GreeterBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     * Sends a greeting
     * </pre>
     */
    public grpc.htsoft.helloworld.HelloReply sayHello(grpc.htsoft.helloworld.HelloRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getSayHelloMethod(), getCallOptions(), request);
    }

    /**
     */
    public grpc.htsoft.helloworld.UserReply getUser(grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetUserMethod(), getCallOptions(), request);
    }

    /**
     */
    public grpc.htsoft.helloworld.User getUser2(grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetUser2Method(), getCallOptions(), request);
    }

    /**
     */
    public java.util.Iterator<grpc.htsoft.helloworld.HelloReply> sayHelloStreamReply(
        grpc.htsoft.helloworld.HelloRequest request) {
      return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
          getChannel(), getSayHelloStreamReplyMethod(), getCallOptions(), request);
    }

    /**
     */
    public grpc.htsoft.helloworld.DataSet getDataSet(grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetDataSetMethod(), getCallOptions(), request);
    }
  }

  /**
   * <pre>
   * The greeting service definition.
   * </pre>
   */
  public static final class GreeterFutureStub extends io.grpc.stub.AbstractFutureStub<GreeterFutureStub> {
    private GreeterFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected GreeterFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new GreeterFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     * Sends a greeting
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<grpc.htsoft.helloworld.HelloReply> sayHello(
        grpc.htsoft.helloworld.HelloRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getSayHelloMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<grpc.htsoft.helloworld.UserReply> getUser(
        grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetUserMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<grpc.htsoft.helloworld.User> getUser2(
        grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetUser2Method(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<grpc.htsoft.helloworld.DataSet> getDataSet(
        grpc.htsoft.helloworld.User request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetDataSetMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_SAY_HELLO = 0;
  private static final int METHODID_GET_USER = 1;
  private static final int METHODID_GET_USER2 = 2;
  private static final int METHODID_SAY_HELLO_STREAM_REPLY = 3;
  private static final int METHODID_GET_DATA_SET = 4;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final GreeterImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(GreeterImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_SAY_HELLO:
          serviceImpl.sayHello((grpc.htsoft.helloworld.HelloRequest) request,
              (io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply>) responseObserver);
          break;
        case METHODID_GET_USER:
          serviceImpl.getUser((grpc.htsoft.helloworld.User) request,
              (io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.UserReply>) responseObserver);
          break;
        case METHODID_GET_USER2:
          serviceImpl.getUser2((grpc.htsoft.helloworld.User) request,
              (io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.User>) responseObserver);
          break;
        case METHODID_SAY_HELLO_STREAM_REPLY:
          serviceImpl.sayHelloStreamReply((grpc.htsoft.helloworld.HelloRequest) request,
              (io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.HelloReply>) responseObserver);
          break;
        case METHODID_GET_DATA_SET:
          serviceImpl.getDataSet((grpc.htsoft.helloworld.User) request,
              (io.grpc.stub.StreamObserver<grpc.htsoft.helloworld.DataSet>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class GreeterBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    GreeterBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return grpc.htsoft.helloworld.HelloWorldProto.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("Greeter");
    }
  }

  private static final class GreeterFileDescriptorSupplier
      extends GreeterBaseDescriptorSupplier {
    GreeterFileDescriptorSupplier() {}
  }

  private static final class GreeterMethodDescriptorSupplier
      extends GreeterBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    GreeterMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (GreeterGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new GreeterFileDescriptorSupplier())
              .addMethod(getSayHelloMethod())
              .addMethod(getGetUserMethod())
              .addMethod(getGetUser2Method())
              .addMethod(getSayHelloStreamReplyMethod())
              .addMethod(getGetDataSetMethod())
              .build();
        }
      }
    }
    return result;
  }
}
